#ifndef _SHELL_SELFKUNGFUINFO_BEAN_H_
#define _SHELL_SELFKUNGFUINFO_BEAN_H_

#include "Beans.h"
#include "Message.h"
using namespace std;
class SelfKungfuInfo : public Bean
{
	public:
	SelfKungfuInfo();
	~SelfKungfuInfo();
	void reset();
	SelfKungfuInfo* clone();
	//技能id
	int32 skillId;
	//功夫名称
	string kungfuName;
	//伤害系数
	string damageRatio;
	//熟练度
	int32 proficiency;
	//功夫类型1.门派。2江湖
	int8 type;
	//技能种类（普通0,徒手1,武器2,内功3,奇术4）
	int32 dametype;
	//自创武功附加的总效果的参数(伤害系数,效果id1=值,效果id2=值)
	string selfKungfuEffects;
	//自创武功每层附加的效果的参数(伤害系数,效果id1,值,效果id2,值;伤害系数,效果id2,值,效果id2,值)
	string everyLevelEffect;
	//自创武功类型(0.一击致命 1.乱战高手.2.运筹帷幄)
	int32 kungfuStyle;
	
	bool read_from(ByteBuf& buf);
	bool write_to(ByteBuf& buf);
};

#endif
